//
//  StatusCell.h
//
//  Created by Olof Millberg on 2010-04-06.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "WOTableViewCell.h"

@protocol WOStatusPickerDelegate
- (void) statusChanged:(NSString *)status;
@end

@interface StatusCell : WOTableViewCell <UIActionSheetDelegate, WOStatusPickerDelegate>
{
	UIButton* statusButton;
	UILabel* priorityLabel;
	UIActionSheet* statusMenu;
	id<WOStatusPickerDelegate> delegate;
	NSMutableArray *statuses;
	WorkOrder *workOrder;
}
@property (nonatomic, retain) IBOutlet UIButton* statusButton;
@property (nonatomic, retain) IBOutlet UILabel* priorityLabel;
@property (nonatomic, assign) id<WOStatusPickerDelegate> delegate;
@property (nonatomic, retain) NSMutableArray *statuses;
@property (nonatomic, retain) WorkOrder *workOrder;

- (IBAction) showStatusPicker;

@end
